using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ImageAnalystTools._Math
{
    /// <summary>
    /// <para>Abs</para>
    /// <para>Calculates the absolute value of the cells in a raster.</para>
    /// <para>计算栅格中像元的绝对值。</para>
    /// </summary>    
    [DisplayName("Abs")]
    public class Abs : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Abs()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster_or_constant">
        /// <para>Input raster or constant value</para>
        /// <para><xdoc>
        ///   <para>The input raster for which to calculate the absolute values.</para>
        ///   <para>To use a number as an input for this parameter, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>用于计算绝对值的输入栅格。</para>
        ///   <para>要使用数字作为此参数的输入，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>The cell values are the absolute value of the cells of the input raster.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>像元值是输入栅格像元的绝对值。</para>
        /// </xdoc></para>
        /// </param>
        public Abs(object _in_raster_or_constant, object _out_raster)
        {
            this._in_raster_or_constant = _in_raster_or_constant;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Image Analyst Tools";

        public override string ToolName => "Abs";

        public override string CallName => "ia.Abs";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_raster_or_constant, _out_raster];

        /// <summary>
        /// <para>Input raster or constant value</para>
        /// <para><xdoc>
        ///   <para>The input raster for which to calculate the absolute values.</para>
        ///   <para>To use a number as an input for this parameter, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>用于计算绝对值的输入栅格。</para>
        ///   <para>要使用数字作为此参数的输入，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster or constant value")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster_or_constant { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>The cell values are the absolute value of the cells of the input raster.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>像元值是输入栅格像元的绝对值。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public Abs SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}